@layout("/common/_container.html"){
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal" id="menuDetail">
			<input type="hidden" id="id" value="${menu.id!}">
			<div class="col-sm-6">
				<#input id="menuName" name="名称" value="${menu.menuName!}" underline="true" />
				<#input id="menuCode" name="菜单编号" value="${menu.menuCode!}" underline="true" />
				<!-- <#input id="parentName" name="父级编号" underline="true" readonly="readonly"/>
				<input type="hidden" id="parentId" value="${menu.parentId!}">
				 -->
				<input type="hidden" id="level" value="${menu.level!}">
				 <#input id="parentName" name="父级名称" readonly="readonly" hidden="parentId"
					click="menuDetail.showMenuTree(); return false;"
					style="background-color: #ffffff !important;" underline="true"
					ztreeFlag="true" ztreeDivId="ztreeDiv" ztreeId="pidTree" ztreeStyle="width:244px !important;"
				 />
				<#select id="isMenu" name="是否是菜单">
                    <option value="1">是</option>
                    <option value="0">不是</option>
                </#select>
			</div>
			<div class="col-sm-6">
                <#input id="url" name="请求地址" value="${menu.url!}" underline="true" />
                <#input id="sortNum" name="排序号" value="${menu.sortNum!}" underline="true" />
                <#input id="icon" name="图标" underline="false" value="${menu.icon!}" underline="true"/>
                <#select id="isEnable" name="是否启用">
                    <option value="1">启用</option>
                    <option value="0">不启用</option>
                </#select>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-12 text-center">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" click="menuDetail.submit('${action}')"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" click="menuDetail.close()"/>
                </div>
            </div>
		</div>
	</div>
</div>
<script type="text/javascript">
	var isMenu = '${menu.isMenu!}';
	var isEnable = '${menu.isEnable!}';
	var parentId = '${menu.parentId!}';
</script>
<script src="${ctxPath}/${adminPath}/menu/menuDetail.js"></script>
@}